<?phpclass DealCommentEntityBase{	public $comment_id;	public $user_id;	public $deal_id;	public $comment_text;	public $creation_date;	public $default;	public function __construct($arrValue = null, $prefix = '')
	{
		if(!is_null($arrValue) && is_array($arrValue))
		{			$this->comment_id = (int) ($arrValue[$prefix . 'comment_id']);			$this->user_id = (int) ($arrValue[$prefix . 'user_id']);			$this->deal_id = (int) ($arrValue[$prefix . 'deal_id']);			$this->comment_text = strval ($arrValue[$prefix . 'comment_text']);			$this->creation_date = strval ($arrValue[$prefix . 'creation_date']);			$this->default = (int) ($arrValue[$prefix . 'default']);		}
	}	/**	 * Get all fields for selecting columns	 *	 * @param string $alias: alias of table	 * @param string $prefix	 * @return string	 */	public static function getSelectColumns($alias, $prefix = '')	{		$arrValue = array(						"{$alias}.comment_id AS `{$prefix}comment_id`",						"{$alias}.user_id AS `{$prefix}user_id`",						"{$alias}.deal_id AS `{$prefix}deal_id`",						"{$alias}.comment_text AS `{$prefix}comment_text`",						"{$alias}.creation_date AS `{$prefix}creation_date`",						"{$alias}.default AS `{$prefix}default`"						);		return implode(',', $arrValue);	}}